﻿using AutoFlatnessTest.Db;
using Ping9719.WpfEx.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace AutoFlatnessTest.ViewModel
{
    public class UcDataList2VModel : BindableBase
    {
        private List<GetDemaPageDto> dataList = new List<GetDemaPageDto>();

        public List<GetDemaPageDto> DataList
        {
            get { return dataList; }
            set { dataList = value; RaisePropertyChanged(nameof(DataList)); }
        }

        #region 筛选

        private DateTime? TimeGo_;

        public DateTime? TimeGo
        {
            get { return TimeGo_; }
            set { TimeGo_ = value; RaisePropertyChanged(nameof(TimeGo)); }
        }

        private DateTime? TimeTo_;

        //private string TimeGoText_;

        //public string TimeGoText
        //{
        //    get { return TimeGoText_; }
        //    set { TimeGoText_ = value; RaisePropertyChanged(nameof(TimeGoText)); }
        //}


        public DateTime? TimeTo
        {
            get { return TimeTo_; }
            set { TimeTo_ = value; RaisePropertyChanged(nameof(TimeTo)); }
        }

        #endregion

        #region 页面

        private List<int> Nian_;

        public List<int> Nian
        {
            get { return Nian_; }
            set { Nian_ = value; RaisePropertyChanged(nameof(Nian)); }
        }

        private int maxPageCount;

        public int MaxPageCount
        {
            get { return maxPageCount; }
            set { maxPageCount = value; RaisePropertyChanged(nameof(MaxPageCount)); }
        }

        private int dataCountPerPage;

        public int DataCountPerPage
        {
            get { return dataCountPerPage; }
            set { dataCountPerPage = value; RaisePropertyChanged(nameof(DataCountPerPage)); }
        }

        private int pageIndex;

        public int PageIndex
        {
            get { return pageIndex; }
            set { pageIndex = value; RaisePropertyChanged(nameof(PageIndex)); }
        }

        private Visibility vis = Visibility.Collapsed;
        public Visibility Vis
        {
            get { return vis; }
            set { vis = value; RaisePropertyChanged(nameof(Vis)); }
        }

        #endregion




    }
}
